<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AlterStatDailyHostInfo2Table extends Migration
{
    protected $connection = 'stat';

    public function up(): void
    {
        Schema::table('stat_daily_host_info', function (Blueprint $table) {
            $table->unsignedSmallInteger('receive_num')->default(0)->comment('接收名义礼物数量');
            $table->unsignedSmallInteger('receive_user_num')->default(0)->comment('接收名义礼物用户数量');
            $table->unsignedSmallInteger('msg_back_num')->default(0)->comment('回复的用户数');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('stat_daily_host_info', function (Blueprint $table) {
            //
        });
    }
}
